<link media="screen" rel="stylesheet" type="text/css"
	href="/crawler456/public/admin.css" />
<center>
<div class="addcate">
	<form action="" method="post">		
			<h1>ADD WEBSITE</h1>
			 <?php 
			  if($this->errors){
				foreach($this->errors as $item)
				{echo '<span style="color:red;font-weight:bold;">'.$item.'</span><br>';}
			}
			  ?><br>
			<label>Website_Name:</label><input type="text" name="txtname" size="25"/><br>			
			<label>Url:</label>
			<select name="method">
				<option value="http://">http://</option> 
				<option value="https://">https://</option>
			</select>
			<input type="text" name="txturl" size="25"/><br>
			<label></label><input type="submit" name="ok" value="Add" />		
	</form>	
</div>
<div class="listcate">
<h1>LIST WEBSITE</h1>
<table class="table-3">
	<tr>
		<td> Name </td>
		<td> Url </td>
		<td>Action</td>
	</tr>
	<?php foreach ($this->list_website as $e):?>
		<tr>
			<td> <?php echo $e->name?> </td>
			<td> <?php echo $this->escape($e->url); ?> </td>
			<td><a href="<?php echo ROOT_URL?>/admintool/deletewebsite/id/<?php echo $e['id'];?>">Del</a></td>
		</tr>
	<?php endforeach;?>
</table>
</div>
</center>